package com.south.base.controller;

import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2019/6/12 10:17
 */
@RestController
public class Md5Controller {
    @GetMapping("/md5/encode/{data}")
    public String encode(@PathVariable String data) {
        return DigestUtils.md5Hex(data);
    }
}
